package com.tuling.singleton;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.channels.ServerSocketChannel;

public class InnerClassSinggleton {


    private  InnerClassSinggleton(){}

    public static class Innerclass {
         public static  final InnerClassSinggleton instance = new InnerClassSinggleton();
    }

    public static void main(String[] args) throws IOException {

       int x=20, y=5;
       System.out.println(x+y +""+(x+y)+y);

        InnerClassSinggleton instance = Innerclass.instance;
        System.out.println(instance);
        InnerClassSinggleton instance1 = Innerclass.instance;
        System.out.println(instance);
        double a = -5.6;
        ServerSocket serverSocket = new ServerSocket(100);
        ServerSocketChannel channel = serverSocket.getChannel();
    }

   public void example(int m){}
   public int example(){return 0;}
   public void example2(){}
   public int example(int m,float f){return 0;}

}
